const {Sequelize,Model} = require('sequelize');
const sequelize = require('../db/index');

class QuestionType extends Model{}

QuestionType.init({
  type_id:{
    type:Sequelize.INTEGER(11),
    autoIncrement:true,
    primaryKey:true
  },
  type_name:{
    type:Sequelize.STRING(50),
    allowNull:false
  }
},{
  sequelize,
  timestamps: false,
  tableName:'questionType'
});
module.exports = QuestionType;